package com.hxzy.service;

import com.hxzy.controller.mobile.addressbook.req.AddressBookAddReq;
import com.hxzy.entity.AddressBook;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 11452
* @description 针对表【address_book(地址管理)】的数据库操作Service
* @createDate 2023-08-28 11:54:55
*/
public interface AddressBookService extends IService<AddressBook> {

    /**
     * 添加
     * @param req
     * @return
     */
    boolean add(AddressBookAddReq req);

    /**
     * 设定默认地址
     * @param id
     * @return
     */
    boolean updateDefaultAddress(Long id);
}
